#ifndef GRAPHICSRECTITEM_H
#define GRAPHICSRECTITEM_H

#include <QGraphicsRectItem>

class GraphicsTextItem;

class GraphicsRectItem : public QObject, public QGraphicsRectItem
{
	Q_OBJECT

public:
	GraphicsRectItem(QGraphicsItem *parent = 0);
	~GraphicsRectItem();

protected:
	void dragEnterEvent(QGraphicsSceneDragDropEvent *event);
	void dragMoveEvent(QGraphicsSceneDragDropEvent *event);
	void dropEvent(QGraphicsSceneDragDropEvent *event);

	void mousePressEvent(QGraphicsSceneMouseEvent *event);
	void mouseMoveEvent(QGraphicsSceneMouseEvent *event);

	//QRectF getRect() { return mRect; }
private:
	GraphicsTextItem * mlabel;
	QRectF mRect;
};

#endif // GRAPHICSRECTITEM_H
